using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using YABlog.DAL;

namespace YABlog.BLL
{
    public class MetaDataAction
    {
        MetaDataDb metaDb = new MetaDataDb();

        public MetaDataAction()
        {
           
        }

        public void GetMetaData(out MetaDataBO meta)
        {
            DataTable table = metaDb.GetMetaData();

            meta = new MetaDataBO();

            meta.SITENAME = table.Rows[0][0].ToString();
            meta.SUBTITLE = table.Rows[0][1].ToString();
        }

        public bool UpdateMetaData(MetaDataBO meta)
        {
            return metaDb.UpdateMetaData(meta.SITENAME, meta.SUBTITLE);
        }


    }
}
